package com.example.forjava.controller;

import com.example.forjava.service.ExecuteResultService;
import com.example.forjava.util.GenericJsonResult;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@Slf4j
@RequiredArgsConstructor
public class ExecuteResultController {

    private final ExecuteResultService executeResultService;

    @RequestMapping("/validate")
    public GenericJsonResult validate() {
        return executeResultService.validate();
    }


    @RequestMapping(value = "/doStep", method = RequestMethod.GET)
    public GenericJsonResult doStep() {
        return executeResultService.doStep();
    }

    @RequestMapping("/checkNodeSuccess")
    public void checkNodeSuccess() {

    }
}
